package com.lxx.modules.sys.entity;

import com.lxx.common.BaseEntity;

/**
 *  实体类
 *
 * @author lxx
 */
public class SysConfig extends BaseEntity<Integer>  {
    /** 系统名称 */
    private String systemName;

    /** 关键词 */
    private String keywords;

    /** 系统描述 */
    private String systemDesp;

    /** 静态资源路径 */
    private String staticResourcePath;

    /** 上传路径 */
    private String uploadPath;

    /** 版权信息 */
    private String copyright;

    /** 备案号 */
    private String recordNumber;

    /** 统计代码 */
    private String statisticsCode;

    /** IP白名单 */
    private String ipWhiteList;

    /** 最大登陆失败次数 */
    private Integer maxLoginFailTimes;

    /** 邮件发送模式 */
    private String mailMode;

    /**  */
    private String smtpServer;

    /**  */
    private String smtpPort;

    /**  */
    private String mailUsername;

    /**  */
    private String mailPassword;

    /** 收件邮箱地址 */
    private String mailAddress;

    /**
     * 返回 系统名称
     *
     * @return 系统名称
     */
    public String getSystemName() {
        return systemName;
    }

    /**
     * 设置 系统名称
     *
     * @param systemName 系统名称
     */
    public void setSystemName(String systemName) {
        this.systemName = systemName == null ? null : systemName.trim();
    }

    /**
     * 返回 关键词
     *
     * @return 关键词
     */
    public String getKeywords() {
        return keywords;
    }

    /**
     * 设置 关键词
     *
     * @param keywords 关键词
     */
    public void setKeywords(String keywords) {
        this.keywords = keywords == null ? null : keywords.trim();
    }

    /**
     * 返回 系统描述
     *
     * @return 系统描述
     */
    public String getSystemDesp() {
        return systemDesp;
    }

    /**
     * 设置 系统描述
     *
     * @param systemDesp 系统描述
     */
    public void setSystemDesp(String systemDesp) {
        this.systemDesp = systemDesp == null ? null : systemDesp.trim();
    }

    /**
     * 返回 静态资源路径
     *
     * @return 静态资源路径
     */
    public String getStaticResourcePath() {
        return staticResourcePath;
    }

    /**
     * 设置 静态资源路径
     *
     * @param staticResourcePath 静态资源路径
     */
    public void setStaticResourcePath(String staticResourcePath) {
        this.staticResourcePath = staticResourcePath == null ? null : staticResourcePath.trim();
    }

    /**
     * 返回 上传路径
     *
     * @return 上传路径
     */
    public String getUploadPath() {
        return uploadPath;
    }

    /**
     * 设置 上传路径
     *
     * @param uploadPath 上传路径
     */
    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath == null ? null : uploadPath.trim();
    }

    /**
     * 返回 版权信息
     *
     * @return 版权信息
     */
    public String getCopyright() {
        return copyright;
    }

    /**
     * 设置 版权信息
     *
     * @param copyright 版权信息
     */
    public void setCopyright(String copyright) {
        this.copyright = copyright == null ? null : copyright.trim();
    }

    /**
     * 返回 备案号
     *
     * @return 备案号
     */
    public String getRecordNumber() {
        return recordNumber;
    }

    /**
     * 设置 备案号
     *
     * @param recordNumber 备案号
     */
    public void setRecordNumber(String recordNumber) {
        this.recordNumber = recordNumber == null ? null : recordNumber.trim();
    }

    /**
     * 返回 统计代码
     *
     * @return 统计代码
     */
    public String getStatisticsCode() {
        return statisticsCode;
    }

    /**
     * 设置 统计代码
     *
     * @param statisticsCode 统计代码
     */
    public void setStatisticsCode(String statisticsCode) {
        this.statisticsCode = statisticsCode == null ? null : statisticsCode.trim();
    }

    /**
     * 返回 IP白名单
     *
     * @return IP白名单
     */
    public String getIpWhiteList() {
        return ipWhiteList;
    }

    /**
     * 设置 IP白名单
     *
     * @param ipWhiteList IP白名单
     */
    public void setIpWhiteList(String ipWhiteList) {
        this.ipWhiteList = ipWhiteList == null ? null : ipWhiteList.trim();
    }

    /**
     * 返回 最大登陆失败次数
     *
     * @return 最大登陆失败次数
     */
    public Integer getMaxLoginFailTimes() {
        return maxLoginFailTimes;
    }

    /**
     * 设置 最大登陆失败次数
     *
     * @param maxLoginFailTimes 最大登陆失败次数
     */
    public void setMaxLoginFailTimes(Integer maxLoginFailTimes) {
        this.maxLoginFailTimes = maxLoginFailTimes;
    }

    /**
     * 返回 邮件发送模式
     *
     * @return 邮件发送模式
     */
    public String getMailMode() {
        return mailMode;
    }

    /**
     * 设置 邮件发送模式
     *
     * @param mailMode 邮件发送模式
     */
    public void setMailMode(String mailMode) {
        this.mailMode = mailMode == null ? null : mailMode.trim();
    }

    /**
     * 返回 
     *
     * @return 
     */
    public String getSmtpServer() {
        return smtpServer;
    }

    /**
     * 设置 
     *
     * @param smtpServer 
     */
    public void setSmtpServer(String smtpServer) {
        this.smtpServer = smtpServer == null ? null : smtpServer.trim();
    }

    /**
     * 返回 
     *
     * @return 
     */
    public String getSmtpPort() {
        return smtpPort;
    }

    /**
     * 设置 
     *
     * @param smtpPort 
     */
    public void setSmtpPort(String smtpPort) {
        this.smtpPort = smtpPort == null ? null : smtpPort.trim();
    }

    /**
     * 返回 
     *
     * @return 
     */
    public String getMailUsername() {
        return mailUsername;
    }

    /**
     * 设置 
     *
     * @param mailUsername 
     */
    public void setMailUsername(String mailUsername) {
        this.mailUsername = mailUsername == null ? null : mailUsername.trim();
    }

    /**
     * 返回 
     *
     * @return 
     */
    public String getMailPassword() {
        return mailPassword;
    }

    /**
     * 设置 
     *
     * @param mailPassword 
     */
    public void setMailPassword(String mailPassword) {
        this.mailPassword = mailPassword == null ? null : mailPassword.trim();
    }

    /**
     * 返回 收件邮箱地址
     *
     * @return 收件邮箱地址
     */
    public String getMailAddress() {
        return mailAddress;
    }

    /**
     * 设置 收件邮箱地址
     *
     * @param mailAddress 收件邮箱地址
     */
    public void setMailAddress(String mailAddress) {
        this.mailAddress = mailAddress == null ? null : mailAddress.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", systemName=").append(systemName);
        sb.append(", keywords=").append(keywords);
        sb.append(", systemDesp=").append(systemDesp);
        sb.append(", staticResourcePath=").append(staticResourcePath);
        sb.append(", uploadPath=").append(uploadPath);
        sb.append(", copyright=").append(copyright);
        sb.append(", recordNumber=").append(recordNumber);
        sb.append(", statisticsCode=").append(statisticsCode);
        sb.append(", ipWhiteList=").append(ipWhiteList);
        sb.append(", maxLoginFailTimes=").append(maxLoginFailTimes);
        sb.append(", mailMode=").append(mailMode);
        sb.append(", smtpServer=").append(smtpServer);
        sb.append(", smtpPort=").append(smtpPort);
        sb.append(", mailUsername=").append(mailUsername);
        sb.append(", mailPassword=").append(mailPassword);
        sb.append(", mailAddress=").append(mailAddress);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysConfig other = (SysConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSystemName() == null ? other.getSystemName() == null : this.getSystemName().equals(other.getSystemName()))
            && (this.getKeywords() == null ? other.getKeywords() == null : this.getKeywords().equals(other.getKeywords()))
            && (this.getSystemDesp() == null ? other.getSystemDesp() == null : this.getSystemDesp().equals(other.getSystemDesp()))
            && (this.getStaticResourcePath() == null ? other.getStaticResourcePath() == null : this.getStaticResourcePath().equals(other.getStaticResourcePath()))
            && (this.getUploadPath() == null ? other.getUploadPath() == null : this.getUploadPath().equals(other.getUploadPath()))
            && (this.getCopyright() == null ? other.getCopyright() == null : this.getCopyright().equals(other.getCopyright()))
            && (this.getRecordNumber() == null ? other.getRecordNumber() == null : this.getRecordNumber().equals(other.getRecordNumber()))
            && (this.getStatisticsCode() == null ? other.getStatisticsCode() == null : this.getStatisticsCode().equals(other.getStatisticsCode()))
            && (this.getIpWhiteList() == null ? other.getIpWhiteList() == null : this.getIpWhiteList().equals(other.getIpWhiteList()))
            && (this.getMaxLoginFailTimes() == null ? other.getMaxLoginFailTimes() == null : this.getMaxLoginFailTimes().equals(other.getMaxLoginFailTimes()))
            && (this.getMailMode() == null ? other.getMailMode() == null : this.getMailMode().equals(other.getMailMode()))
            && (this.getSmtpServer() == null ? other.getSmtpServer() == null : this.getSmtpServer().equals(other.getSmtpServer()))
            && (this.getSmtpPort() == null ? other.getSmtpPort() == null : this.getSmtpPort().equals(other.getSmtpPort()))
            && (this.getMailUsername() == null ? other.getMailUsername() == null : this.getMailUsername().equals(other.getMailUsername()))
            && (this.getMailPassword() == null ? other.getMailPassword() == null : this.getMailPassword().equals(other.getMailPassword()))
            && (this.getMailAddress() == null ? other.getMailAddress() == null : this.getMailAddress().equals(other.getMailAddress()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSystemName() == null) ? 0 : getSystemName().hashCode());
        result = prime * result + ((getKeywords() == null) ? 0 : getKeywords().hashCode());
        result = prime * result + ((getSystemDesp() == null) ? 0 : getSystemDesp().hashCode());
        result = prime * result + ((getStaticResourcePath() == null) ? 0 : getStaticResourcePath().hashCode());
        result = prime * result + ((getUploadPath() == null) ? 0 : getUploadPath().hashCode());
        result = prime * result + ((getCopyright() == null) ? 0 : getCopyright().hashCode());
        result = prime * result + ((getRecordNumber() == null) ? 0 : getRecordNumber().hashCode());
        result = prime * result + ((getStatisticsCode() == null) ? 0 : getStatisticsCode().hashCode());
        result = prime * result + ((getIpWhiteList() == null) ? 0 : getIpWhiteList().hashCode());
        result = prime * result + ((getMaxLoginFailTimes() == null) ? 0 : getMaxLoginFailTimes().hashCode());
        result = prime * result + ((getMailMode() == null) ? 0 : getMailMode().hashCode());
        result = prime * result + ((getSmtpServer() == null) ? 0 : getSmtpServer().hashCode());
        result = prime * result + ((getSmtpPort() == null) ? 0 : getSmtpPort().hashCode());
        result = prime * result + ((getMailUsername() == null) ? 0 : getMailUsername().hashCode());
        result = prime * result + ((getMailPassword() == null) ? 0 : getMailPassword().hashCode());
        result = prime * result + ((getMailAddress() == null) ? 0 : getMailAddress().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}